package br.com.sales.hancadpe.client.presenter.values;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
import br.com.sales.hancadpe.client.presenter.HanCadPEPresenter;
import com.google.inject.Inject;

/**
 *
 * @author v
 */
public class ControlValues {

    @Inject
    public ControlValues() {
    }

    public void clearFields(HanCadPEPresenter.Display container) {
        container.getSenhaEdit().setValue(null);
        container.getUsuarioEdit().setValue(null);
        container.getStateComplete().setValue(null);
        container.getCityComplete().setValue(null);
        container.getCountryComplete().setValue(null);
        container.getNrCelularEdit().setValue(null);
        container.getNrTelefoneEdit().setValue(null);
        container.getRgEdit().setValue(null);
        container.getCpfEdit().setValue(null);
        container.getDateNascimentoEdit().clear();
        container.getIsTipoPessoa().setValue(null);
        container.getNmPersonEdit().setValue(null);
        container.getDateEdit().setValue(null);
        container.getEnderecoEdit().setValue(null);
        container.getUsuarioTipo().setSelectedIndex(0);
    }
}
